package fx;

import javafx.scene.image.Image;

public class ResourceFactory {
    private static final String PRE_FIX = "file:C:\\Users\\zxh\\IdeaProjects\\netEaseMusic\\src\\main\\resources\\img\\";

    public static Image from(String name) {
        return new Image(PRE_FIX + name);
    }
}
